<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h:form id="form" acceptcharset="utf-8">
                <p:growl id="msg" life="3000"/>
                <h2>Emitir Edital</h2>
                <p:panel styleClass="container_24 clearfix " style="background: none; border: none;">
                    <p:dataTable value="#{managerSearcheQuestionnaireResponse.lstQuestionnaireResponsePending()}"
                                 var="q"  paginator="true" rows="5" style="width: 100%" 
                                 paginatorPosition="bottom"
                                 emptyMessage="Nenhuma Correição encontrada"
                                 paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}"  
                                 rowsPerPageTemplate="5,10,15"
                                 >
                        <f:facet name="header">
                            Cartórios

                        </f:facet>  
                        <p:column headerText="Cartório" style="width: 350px;">
                            <p:outputLabel value="#{q.notaryOffice.nome}"/>
                        </p:column>
                        <p:column headerText="Titular" style="width: 350px;">
                            <p:outputLabel value="#{q.notaryOffice.titular}"/>
                        </p:column>
                        <p:column headerText="Data Q" style="100px;">
                            <h:outputText value="#{q.dateQ}">
                                <f:convertDateTime pattern="dd/MM/yyyy"/>

                            </h:outputText>


                        </p:column>

                        <p:column headerText="Opções" style="font-size: 12px;">
                            <p:commandButton icon="ui-icon-print" title="Visualizar Edital"
                                             ajax="false" actionListener="#{managerRelEdit.generetorReportPdf(q)}" update="@form"/>
                            <!--<p:commandButton icon="ui-icon-play" title="Dados da Correição" actionListener="{managerEditQuestionnaireResponse.viewIssues(q)}" update="@form"/>-->
                        </p:column>
                    </p:dataTable>    

                </p:panel>
                <br/>
                <div class="clear"/>
                <div class="buttonAction">
                    <p:commandButton value="Voltar"  icon="ui-icon-arrowreturnthick-1-w" style="font-size: 12px; font-family: sans-serif;" actionListener="#{managerRedirect.redirect('edict.xhtml')}" immediate="true"/>

                </div>

            </h:form>
        </ui:define>
    </ui:composition>

</html>


